﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Quản_Lý_Thư_Viện
{
    public partial class frmThongTinNhanVien : Form
    {
        public frmThongTinNhanVien()
        {
            InitializeComponent();
        }
        NhanvienControl control = new NhanvienControl();
        DataTable dt = new DataTable();
        private void frmThongTinNhanVien_Load(object sender, EventArgs e)
        {
            dt = control.ttnv();
            DataRow dr = dt.Rows[0];
            lblManv.Text = dr["MANV"].ToString();
            lblChucvu.Text = dr["CHUCVU"].ToString();
            lblCmnd.Text = dr["CMND_NV"].ToString();
            lblDiachi.Text = dr["DIACHINV"].ToString();
            lblDienthoai.Text = dr["DIENTHOAINV"].ToString();
            lblGioitinh.Text = dr["GIOITINHNV"].ToString();
            lblHoten.Text = dr["HOTENNV"].ToString();
            lblNgsinh.Text = dr["NGSINHNV"].ToString();
            lblPhongban.Text = dr["PHONGBAN"].ToString();
        }
    }
}
